package com.beten.ui.main.style;

import android.content.Context;
import android.view.View;
import android.widget.Gallery;

import com.beten.demo.R;
import com.beten.ui.util.BtAdapter;
import com.beten.util.DebugHelp;

public class StyleAdapter extends BtAdapter<StyleInfo, StyleViewHolder>{

	public StyleAdapter(Context context) {
		super(context);
		 
	}

	@Override
	protected String getInfoType(StyleInfo info) {
		return defautGetInfoType(info);
	}

	@Override
	protected StyleViewHolder getNewHolder(int position, View convertView,
			StyleInfo info) {
		return new StyleViewHolder();
	}

	@Override
	protected View getNewView(int position, StyleInfo info) {
		View view= mInflater.inflate(R.layout.style_item, null);
		view.setLayoutParams(new Gallery.LayoutParams(
				Gallery.LayoutParams.FILL_PARENT,
				Gallery.LayoutParams.FILL_PARENT));
		DebugHelp.LogD("StyleAdater", "getNewView");
		new StyleInfoItem(mContext, view);
		return view;
	}

	@Override
	protected void fillHolder(int position, View convertView,
			StyleViewHolder holder, StyleInfo info) {
		DebugHelp.LogD("StyleAdater", "fillHolder");
	}

}
